import 'dart:ui';

import 'package:XinXiZiXun/common/apis/apis.dart';
import 'package:XinXiZiXun/common/entitys/entitys.dart';
import 'package:XinXiZiXun/common/utils/utils.dart';
import 'package:XinXiZiXun/common/values/values.dart';
import 'package:XinXiZiXun/pages/mine/components/bottom_out_layout.dart';
import 'package:XinXiZiXun/pages/mine/components/header_layout.dart';
import 'package:flutter/material.dart';

class MinePage extends StatefulWidget {
  @override
  _MinePageState createState() => _MinePageState();
}

class _MinePageState extends State<MinePage> {
  //获取用户信息
  _handleUserInfo() async {
    UserInfoEntity responseEntity = await UserInfoApi.userInfo(params: {});
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        elevation: 0,
        backgroundColor: AppColors.primaryElementColor,
        title: Text(
          '我的',
          style: TextStyle(
              fontFamily: 'Montserrat',
              fontSize: duSetScaleFontSize(36.0),
              fontWeight: FontWeight.w500),
        ),
      ),
      body: SingleChildScrollView(
        child: Column(
          children: [
            HeaderLayout(),
            SizedBox(height: duSetHeight(kDefaultPadding)),
            BottomOutLayout(),
          ],
        ),
      ),
    );
  }
}
